<?php
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;

?>
<?php $form = ActiveForm::begin(); ?>

<?= $form->field($model, 'username')->label('用户名') ?>

<?= $form->field($model, 'password')->label('密码')->passwordInput()?>


    <div class="form-group">
        <?= Html::submitButton('登录', ['class' => 'btn btn-primary']) ?>
        <?=Html::a("注册",['admin/register'],['class'=>['btn','btn-primary']])?>
    </div>


<?php ActiveForm::end(); ?>
